//post(file, data, callback, type); (only "file" is required)
// delete topic in admin/journal/list
function deleter_journal (id_journal) {
	a = confirm('Delete journal #'+id_journal);
	if (a==true) {
	    $.post(
	    	"http://localhost/topicscientific/ajax/ajax.php", //Ajax file
	   
	    { sendValueJournal: id_journal },  // create an object will all values
	   
	    //function that is called when server returns a value.
	    function(data){
	    	if (data.returnValue=="ok"){
	    		$('table tr#journal_'+id_journal).remove();
	    	}
	    	else {
	    		
	    	}
	    },
	    //How you want the data formated when it is returned from the server.
	    "json"
	    );
	}
}
//post(file, data, callback, type); (only "file" is required)
// delete topic in admin/topic/list
function deleter_topic (id_topic) {
	a = confirm('Delete topic #'+id_topic);
	if (a==true) {
	    $.post(
	    	"http://localhost/topicscientific/ajax/ajax.php", //Ajax file
	   
	    { sendValueTopic: id_topic },  // create an object will all values
	   
	    //function that is called when server returns a value.
	    function(data){
	    	if (data.returnValue=="ok"){
	    		$('table tr#topic_'+id_topic).remove();
	    	}
	    },
	    //How you want the data formated when it is returned from the server.
	    "json"
	    );
	}
}

//post(file, data, callback, type); (only "file" is required)
//delete topic in admin/acc/user
function deleter_user  (id_user) {
	a = confirm('Delete user #'+id_user);
	if (a==true) {
	    $.post(
	    	"http://localhost/topicscientific/ajax/ajax.php", //Ajax file
	   
	    { sendValueUser: id_user },  // create an object will all values
	   
	    //function that is called when server returns a value.
	    function(data){
	    	if (data.returnValue=="ok"){
	    		$('table tr#user_'+id_user).remove();
	    	}
	    },
	    //How you want the data formated when it is returned from the server.
	    "json"
	    );
	}
}
//post(file, data, callback, type); (only "file" is required)
//delete topic in admin/acc/employee
function deleter_employee (id_admin) {
	a = confirm('Delete Employee #'+id_admin);
	if (a==true) {
	    $.post(
	    	"http://localhost/topicscientific/ajax/ajax.php", //Ajax file
	   
	    { sendValueEmployee: id_admin },  // create an object will all values
	   
	    //function that is called when server returns a value.
	    function(data){
	    	if (data.returnValue=="ok"){
	    		$('table tr#employee_'+id_admin).remove();
	    	}
	    },
	    //How you want the data formated when it is returned from the server.
	    "json"
	    );
	}
}
